var maps = Array(952010000, 952020000, 952030000, 952040000, 953000000, 953010000, 953020000, 953030000, 953040000, 953050000, 954000000, 954010000, 954020000, 954030000, 954040000, 954050000);
var 随机;
function start() {
    status = -1;
    action(1, 0, 0);
}
function action(mode, type, selection) {
    if (mode == -1) 
	{
       
        cm.dispose();
    } 
	else 
	{
        if (status >= 0 && mode == 0) 
		{
            cm.sendOk("#b好的,下次再见.");
            cm.dispose();
            return;
        }
        if (mode == 1) 
		{
            status++;
        } else 
		{
            status--;
        }
        if (status == 0) 
		{

			if(cm.getPlayer().getMapId()==180000001)
			{
				cm.dispose();
				cm.openNpc(9900005);
				return;
			}
			
			
				var add = "你想挑战哪个级别的怪物公园？";
				add += "";
				add += "\r\n\r\n"
				add += "#L1##d"+正方箭头+" #b普通难度 #k[通关奖励1个纪念币]\r\n";
				add += "#L2##d"+正方箭头+" #b进阶难度 #k[通关奖励2个纪念币]\r\n";
				add += "#L3##d"+正方箭头+" #b困难难度 #k[通关奖励3个纪念币]\r\n";
				add += "#L4##d"+正方箭头+" #b痛苦难度 #k[通关奖励4个纪念币]\r\n";
				add += "#L5##d"+正方箭头+" #b折磨难度 #k[通关奖励5个纪念币]\r\n";
				add += "#L6##d"+正方箭头+" #b超鬼难度 #k[通关奖励6个纪念币]\r\n";
				add += "#L7##d"+正方箭头+" #b试试就逝世 #k[通关奖励7个纪念币]\r\n";
				cm.sendSimple(add);

//------------------------------------------------------------------------

        }
		else if (status == 1) 
{
			//普通难度
			if (selection == 1) {
				if(cm.getPlayer().getParty() == null) //队伍判断
				{
					cm.playerMessage(1, "你没有队伍，请先创建队伍或加入一个队伍！"); 
					cm.dispose();
				}
				else
				{
					if(!cm.是否队长())
					{
						cm.playerMessage(1, "你不是队长，请队长来找我！"); 
						cm.dispose();
					}
					else
					{
						var 挑战地图ID1 = 952020000;
						var 挑战地图ID2 = 952020100;
						var 挑战地图ID3 = 952020200;
						var 挑战地图ID4 = 952020300;
						var 挑战地图ID5 = 952020400;
						var 挑战地图ID6 = 952020500;
						var 怪物ID1 = 5400000;
						var 怪物ID2 = 5400000;
						var 怪物ID3 = 5140000;
						var 怪物ID4 = 5140000;
						var 怪物ID5 = 5100001;
						var 怪物ID6 = 7130102;
						var 当前队伍 = cm.getPlayer().getParty();
						if(cm.判断指定地图玩家数量(挑战地图ID1) <=0 && cm.判断指定地图玩家数量(挑战地图ID1+100) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+200) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+300) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+400) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+500) <= 0)
						{
							if(cm.判断团队每日("怪物公园普通难度") < 999)
							{
								cm.团队传送地图(挑战地图ID1,当前队伍);
								cm.给团队每日("怪物公园普通难度");
								cm.清怪();
								cm.刷新地图();
								cm.spawnMobOnMap(怪物ID1,3,142,83,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID1,3,434,83,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID1,3,-350,83,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID1,3,-464,274,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID1,3,14,214,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID1,3,140,214,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID2,3,-216,274,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,3,-100,274,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,3,100,274,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,3,439,274,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,3,439,83,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,3,-100,83,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,3,100,83,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID3,5,-394,-13,挑战地图ID3);
								cm.spawnMobOnMap(怪物ID3,5,-118,371,挑战地图ID3);
								cm.spawnMobOnMap(怪物ID3,8,-75,789,挑战地图ID3);
								cm.spawnMobOnMap(怪物ID4,5,73,-903,挑战地图ID4);
								cm.spawnMobOnMap(怪物ID4,5,-295,-485,挑战地图ID4);
								cm.spawnMobOnMap(怪物ID4,5,148,-461,挑战地图ID4);
								cm.spawnMobOnMap(怪物ID4,8,-116,274,挑战地图ID4);
								cm.spawnMobOnMap(怪物ID5,5,-566,-86,挑战地图ID5);
								cm.spawnMobOnMap(怪物ID5,5,-97,34,挑战地图ID5);
								cm.spawnMobOnMap(怪物ID5,8,643,34,挑战地图ID5);
								cm.spawnMobOnMap(怪物ID6,1,-85,66,挑战地图ID6,1000000);
								cm.喇叭(2,""+cm.getPlayer().getName()+"带领他的队伍去挑战 普通怪物公园 去了，大家祝福他们吧！");
								cm.dispose();
							}
							else
							{
								cm.playerMessage(1, "队伍中有人挑战次数不够了"); 
								cm.dispose();
							}
						}
						else
						{
							cm.playerMessage(1, "有人在挑战，请换线或等待"); 
							cm.dispose();
						}
					}
				}
			}
			
			//进阶难度
			if (selection == 2) {
				if(cm.getPlayer().getParty() == null) //队伍判断
				{
					cm.playerMessage(1, "你没有队伍，请先创建队伍或加入一个队伍！"); 
					cm.dispose();
				}
				else
				{
					if(!cm.是否队长())
					{
						cm.playerMessage(1, "你不是队长，请队长来找我！"); 
						cm.dispose();
					}
					else
					{
						var 挑战地图ID1 = 952030000;
						var 挑战地图ID2 = 952030100;
						var 挑战地图ID3 = 952030200;
						var 挑战地图ID4 = 952030300;
						var 挑战地图ID5 = 952030400;
						var 挑战地图ID6 = 952030500;
						var 怪物ID1 = 7130020;
						var 怪物ID2 = 7130020;
						var 怪物ID3 = 8150101;
						var 怪物ID4 = 8150100;
						var 怪物ID5 = 8140600;
						var 怪物ID6 = 8220003;
						var 当前队伍 = cm.getPlayer().getParty();
						if(cm.判断指定地图玩家数量(挑战地图ID1) <=0 && cm.判断指定地图玩家数量(挑战地图ID1+100) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+200) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+300) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+400) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+500) <= 0)
						{
							if(cm.判断团队每日("怪物公园进阶难度") < 999)
							{
								cm.团队传送地图(挑战地图ID1,当前队伍);
								cm.给团队每日("怪物公园进阶难度");
								cm.清怪();
								cm.刷新地图();
								cm.spawnMobOnMap(怪物ID1,15,564,370,挑战地图ID1);
								cm.spawnMobOnMap(怪物ID1,15,1186,400,挑战地图ID1);

								cm.spawnMobOnMap(怪物ID2,10,446,640,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,10,764,340,挑战地图ID2);
								cm.spawnMobOnMap(怪物ID2,10,1,-80,挑战地图ID2);

								cm.spawnMobOnMap(怪物ID3,10,-633,280,挑战地图ID3);
								cm.spawnMobOnMap(怪物ID3,10,450,160,挑战地图ID3);
								cm.spawnMobOnMap(怪物ID3,10,94,-140,挑战地图ID3);
								
								cm.spawnMobOnMap(怪物ID4,10,-586,580,挑战地图ID4);
								cm.spawnMobOnMap(怪物ID4,10,521,520,挑战地图ID4);
								cm.spawnMobOnMap(怪物ID4,5,479,160,挑战地图ID4);

								cm.spawnMobOnMap(怪物ID5,10,-270,640,挑战地图ID5);
								cm.spawnMobOnMap(怪物ID5,10,727,580,挑战地图ID5);
								cm.spawnMobOnMap(怪物ID5,8,595,-20,挑战地图ID5);
								
								cm.spawnMobOnMap(怪物ID6,1,446,520,挑战地图ID6,13000000);
								cm.喇叭(2,""+cm.getPlayer().getName()+"带领他的队伍去挑战 普通怪物公园 去了，大家祝福他们吧！");
								cm.dispose();
							}
							else
							{
								cm.playerMessage(1, "队伍中有人挑战次数不够了"); 
								cm.dispose();
							}
						}
						else
						{
							cm.playerMessage(1, "有人在挑战，请换线或等待"); 
							cm.dispose();
						}
					}
				}
			}
			
			//困难难度
			if (selection == 3) {
				if(cm.getPlayer().getParty() == null) //队伍判断
				{
					cm.playerMessage(1, "你没有队伍，请先创建队伍或加入一个队伍！"); 
					cm.dispose();
				}
				else
				{
					if(!cm.是否队长())
					{
						cm.playerMessage(1, "你不是队长，请队长来找我！"); 
						cm.dispose();
					}
					else
					{
						var 挑战地图ID1 = 952040000;
						var 挑战地图ID2 = 952040100;
						var 挑战地图ID3 = 952040200;
						var 挑战地图ID4 = 952040300;
						var 挑战地图ID5 = 952040400;
						var 挑战地图ID6 = 952040500;
						var 怪物ID1 = 4230100;
						var 怪物ID2 = 4130100;
						var 怪物ID3 = 6130100;
						var 怪物ID4 = 9000201;
						var 怪物ID5 = 9200014;
						var 怪物ID6 = 8130100;
						var 当前队伍 = cm.getPlayer().getParty();
						if(cm.判断指定地图玩家数量(挑战地图ID1) <=0 && cm.判断指定地图玩家数量(挑战地图ID1+100) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+200) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+300) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+400) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+500) <= 0)
						{
							if(cm.判断团队每日("怪物公园困难难度") < 999)
							{
								cm.团队传送地图(挑战地图ID1,当前队伍);
								cm.给团队每日("怪物公园困难难度");
								cm.清怪();
								cm.刷新地图();
								cm.spawnMobOnMap(怪物ID1,15,971,1213,挑战地图ID1,1000000);
								cm.spawnMobOnMap(怪物ID1,15,567,1638,挑战地图ID1,2000000);
								cm.spawnMobOnMap(怪物ID1,10,934,2119,挑战地图ID1,3000000);

								cm.spawnMobOnMap(怪物ID2,10,905,410,挑战地图ID2,3000000);
								cm.spawnMobOnMap(怪物ID2,5,1191,133,挑战地图ID2,3000000);
								cm.spawnMobOnMap(怪物ID2,10,1437,-171,挑战地图ID2,3000000);

								cm.spawnMobOnMap(怪物ID3,10,169,-92,挑战地图ID3,3000000);
								cm.spawnMobOnMap(怪物ID3,10,84,-393,挑战地图ID3,3000000);
								cm.spawnMobOnMap(怪物ID3,10,240,-712,挑战地图ID3,3000000);
								
								cm.spawnMobOnMap(怪物ID4,10,85,130,挑战地图ID4,3000000);
								cm.spawnMobOnMap(怪物ID4,10,882,70,挑战地图ID4,3000000);
								cm.spawnMobOnMap(怪物ID4,5,1671,10,挑战地图ID4,3000000);

								cm.spawnMobOnMap(怪物ID5,10,38,100,挑战地图ID5,3000000);
								cm.spawnMobOnMap(怪物ID5,10,1141,280,挑战地图ID5,3000000);
								cm.spawnMobOnMap(怪物ID5,8,1758,215,挑战地图ID5,3000000);
								
								cm.spawnMobOnMap(怪物ID6,1,1244,-140,挑战地图ID6,53000000);
								cm.喇叭(2,""+cm.getPlayer().getName()+"带领他的队伍去挑战 普通怪物公园 去了，大家祝福他们吧！");
								cm.dispose();
							}
							else
							{
								cm.playerMessage(1, "队伍中有人挑战次数不够了"); 
								cm.dispose();
							}
						}
						else
						{
							cm.playerMessage(1, "有人在挑战，请换线或等待"); 
							cm.dispose();
						}
					}
				}
			}
		
		
			//痛苦难度
			if (selection == 3) {
				if(cm.getPlayer().getParty() == null) //队伍判断
				{
					cm.playerMessage(1, "你没有队伍，请先创建队伍或加入一个队伍！"); 
					cm.dispose();
				}
				else
				{
					if(!cm.是否队长())
					{
						cm.playerMessage(1, "你不是队长，请队长来找我！"); 
						cm.dispose();
					}
					else
					{
						var 挑战地图ID1 = 953020000;
						var 挑战地图ID2 = 953020100;
						var 挑战地图ID3 = 953020200;
						var 挑战地图ID4 = 953020300;
						var 挑战地图ID5 = 953020400;
						var 挑战地图ID6 = 953020500;
						var 怪物ID1 = 4230100;
						var 怪物ID2 = 4130100;
						var 怪物ID3 = 6130100;
						var 怪物ID4 = 9000201;
						var 怪物ID5 = 9200014;
						var 怪物ID6 = 8130100;
						var 当前队伍 = cm.getPlayer().getParty();
						if(cm.判断指定地图玩家数量(挑战地图ID1) <=0 && cm.判断指定地图玩家数量(挑战地图ID1+100) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+200) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+300) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+400) <= 0&& cm.判断指定地图玩家数量(挑战地图ID1+500) <= 0)
						{
							if(cm.判断团队每日("怪物公园困难难度") < 999)
							{
								cm.团队传送地图(挑战地图ID1,当前队伍);
								cm.给团队每日("怪物公园困难难度");
								cm.清怪();
								cm.刷新地图();
								cm.spawnMobOnMap(怪物ID1,15,971,1213,挑战地图ID1,1000000);
								cm.spawnMobOnMap(怪物ID1,15,567,1638,挑战地图ID1,2000000);
								cm.spawnMobOnMap(怪物ID1,10,934,2119,挑战地图ID1,3000000);

								cm.spawnMobOnMap(怪物ID2,10,905,410,挑战地图ID2,3000000);
								cm.spawnMobOnMap(怪物ID2,5,1191,133,挑战地图ID2,3000000);
								cm.spawnMobOnMap(怪物ID2,10,1437,-171,挑战地图ID2,3000000);

								cm.spawnMobOnMap(怪物ID3,10,169,-92,挑战地图ID3,3000000);
								cm.spawnMobOnMap(怪物ID3,10,84,-393,挑战地图ID3,3000000);
								cm.spawnMobOnMap(怪物ID3,10,240,-712,挑战地图ID3,3000000);
								
								cm.spawnMobOnMap(怪物ID4,10,85,130,挑战地图ID4,3000000);
								cm.spawnMobOnMap(怪物ID4,10,882,70,挑战地图ID4,3000000);
								cm.spawnMobOnMap(怪物ID4,5,1671,10,挑战地图ID4,3000000);

								cm.spawnMobOnMap(怪物ID5,10,38,100,挑战地图ID5,3000000);
								cm.spawnMobOnMap(怪物ID5,10,1141,280,挑战地图ID5,3000000);
								cm.spawnMobOnMap(怪物ID5,8,1758,215,挑战地图ID5,3000000);
								
								cm.spawnMobOnMap(怪物ID6,1,1244,-140,挑战地图ID6,53000000);
								cm.喇叭(2,""+cm.getPlayer().getName()+"带领他的队伍去挑战 普通怪物公园 去了，大家祝福他们吧！");
								cm.dispose();
							}
							else
							{
								cm.playerMessage(1, "队伍中有人挑战次数不够了"); 
								cm.dispose();
							}
						}
						else
						{
							cm.playerMessage(1, "有人在挑战，请换线或等待"); 
							cm.dispose();
						}
					}
				}
			}
		}
	}
}
//---------------------------------------------------------------------------
var acc = "#fEffect/CharacterEff/1112903/0/0#";//红桃心
var aaa = "#fUI/UIWindow.img/Quest/icon9/0#";//红色右箭头
var zzz = "#fUI/UIWindow.img/Quest/icon8/0#";//蓝色右箭头
var sss = "#fUI/UIWindow.img/QuestIcon/3/0#";//选择道具
var 蓝色角点 = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var 蓝色箭头 = "#fUI/UIWindow/Quest/icon2/7#";
var 红色箭头 = "#fUI/UIWindow/Quest/icon6/7#";
var 圆形 = "#fUI/UIWindow/Quest/icon3/6#";
var 美化ne = "#fUI/UIWindow/Quest/icon6/7#";
var 感叹号 = "#fUI/UIWindow/Quest/icon0#";
var 正方箭头 = "#fUI/Basic/BtHide3/mouseOver/0#";
var 中条猫 ="#fUI/ChatBalloon/37/n#";
var 猫右 =  "#fUI/ChatBalloon/37/ne#";
var 猫左 =  "#fUI/ChatBalloon/37/nw#";
var 右 =    "#fUI/ChatBalloon/37/e#";
var 左 =    "#fUI/ChatBalloon/37/w#";
var 下条猫 ="#fUI/ChatBalloon/37/s#";
var 猫下右 ="#fUI/ChatBalloon/37/se#";
var 猫下左 ="#fUI/ChatBalloon/37/sw#";
var 皇冠白 ="#fUI/GuildMark/Mark/Etc/00009004/16#";
var 蓝色角点 = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var 草莓 = "#fUI/GuildMark/Mark/Plant/00003000/1#"; // 红色草莓
var 草莓1 = "#fUI/GuildMark/Mark/Plant/00003000/10#"; // 淡蓝色草莓
var 草莓2 = "#fUI/GuildMark/Mark/Plant/00003000/11#"; // 紫色草莓
var 草莓3 = "#fUI/GuildMark/Mark/Plant/00003000/15#"; // 白色草莓
var 草莓4 = "#fUI/GuildMark/Mark/Plant/00003000/3#"; // 黄色草莓
var 草莓5 = "#fUI/GuildMark/Mark/Plant/00003000/8#"; // 绿色草莓
var 小黄星 = "#fItem/Etc/0427/04270001/Icon9/0#";  //
var 彩虹 ="#fEffect/ItemEff/1071085/effect/walk1/2#";
var 大黄星 = "#fItem/Etc/0427/04270001/Icon9/1#";  //
var 小兔 = "#fEffect/CharacterEff/1112960/3/0#";  //邪恶小兔 【小】
var 小水滴 = "#fItem/Etc/0427/04270001/Icon10/5#";  //
var 大水滴 = "#fItem/Etc/0427/04270001/Icon10/4#";  //
var 红爱心 ="#fEffect/CharacterEff/1112905/0/1#";
var 金币图标 = "#fUI/UIWindow.img/QuestIcon/7/0#";
var aaa = "#fUI/UIWindow.img/Quest/icon9/0#";
var zzz = "#fUI/UIWindow.img/Quest/icon8/0#";
var sss = "#fUI/UIWindow.img/QuestIcon/3/0#";